<script setup>
// import { ref } from 'vue';

//   const content = ref('')
import useTodoStore from '../store/todos'
const todos = useTodoStore()
</script>

<template>
  <header class="header">
    <h1>todos</h1>
    <input @keydown.enter="todos.add()" v-model="todos.content" class="new-todo" placeholder="What needs to be done?" autofocus />
  </header>
</template>

<style lang="less" scoped></style>
